﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace housingsafety.server.Models
{
    /// <summary>
    /// 排查隐患数量统计
    /// </summary>
    public class PcYhStatDto
    {
        /// <summary>
        /// 行政区编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 行政区名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 街道名称
        /// </summary>
        public string Town { get; set; }
        /// <summary>
        /// 街道编码
        /// </summary>
        public string TownCode { get; set; }

        /// <summary>
        /// 村名称
        /// </summary>
        public string village { get; set; }
        /// <summary>
        /// 村编码
        /// </summary>
        public string villageCode { get; set; }
        /// <summary>
        /// 发现隐患数量
        /// </summary>
        public long Fxyhcount { get; set; } = 0;
        /// <summary>
        /// 消除隐患数量
        /// </summary>
        public long Xcyhcount { get; set; } = 0;
        /// <summary>
        /// 剩余隐患数量
        /// </summary>
        public long Syyhcount { get; set; } = 0;
        /// <summary>
        /// 剩余隐患数量315之后
        /// </summary>
        public long Syyhcount316 { get; set; } = 0;
        /// <summary>
        /// 剩余隐患数量(排查)
        /// </summary>
        public long Syyhcount_pc { get; set; } = 0;
        /// <summary>
        /// 已排查房屋栋数
        /// </summary>
        public long Ypcfwcount { get; set; } = 0;
        /// <summary>
        /// 已排查房屋栋数(隐患)
        /// </summary>
        public long Ypcfwcount_yh { get; set; } = 0;

        /// <summary>
        /// 场所总数
        /// </summary>
        public long Ypccount_ch { get; set; } = 0;

        /// <summary>
        /// 有隐患场所
        /// </summary>
        public long Ypccount_ch_yh { get; set; } = 0;
        /// <summary>
        /// 创建时间
        /// </summary>
        public string createdate { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
    }



    public class PcStatDto
    {
        /// <summary>
        /// 行政区编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 行政区名称
        /// </summary>
        public string qxmc { get; set; }
        /// <summary>
        /// 街道名称
        /// </summary>
        public string jzmc { get; set; }
        /// <summary>
        /// 街道编码
        /// </summary>
        public string TownCode { get; set; }

        /// <summary>
        /// 村名称
        /// </summary>
        public string czmc { get; set; }
        /// <summary>
        /// 村编码
        /// </summary>
        public string villageCode { get; set; }

        public string index { get; set; }
        /// <summary>
        /// 发现隐患数量
        /// </summary>
        public long ypc_sl { get; set; } = 0;
        /// <summary>
        /// 消除隐患数量
        /// </summary>
        public long use_electric_bicycle { get; set; } = 0;
        /// <summary>
        /// 剩余隐患数量
        /// </summary>
        public long use_bottled_liquefied_gas { get; set; } = 0;

        /// <summary>
        /// 剩余隐患数量(排查)
        /// </summary>
        public long use_stacked_items { get; set; } = 0;
        /// <summary>
        /// 已排查房屋栋数
        /// </summary>
        public long use_burglar_mesh { get; set; } = 0;
        /// <summary>
        /// 已排查房屋栋数(隐患)
        /// </summary>
        public long use_ceiling { get; set; } = 0;

        /// <summary>
        /// 场所总数
        /// </summary>
        public long is_completely_isolated { get; set; } = 0;

        /// <summary>
        /// 有隐患场所
        /// </summary>
        public long use_flammable_materials { get; set; } = 0;
        public long unauthorized_electrical_connect { get; set; } = 0;
        public long charging_facilities_no { get; set; } = 0;
        public long not_enough_exits { get; set; } = 0;
        public long use_flammable_insulation_materials { get; set; } = 0;
        public long use_flammable_dangerous_goods { get; set; } = 0;
        public long above_three_floor_self { get; set; } = 0;
        
             public long fire_service_damaged { get; set; } = 0;
        public long use_store_dangerous_goods { get; set; } = 0;
        public long threaten_safety_fire_hazards { get; set; } = 0;
        public long sumall { get; set; } = 0;
        /// <summary>
        /// 创建时间
        /// </summary>
        public string createdate { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
    }

}
